package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.ShopRecordCreateValidate;
import com.mdd.admin.validate.ShopRecordUpdateValidate;
import com.mdd.admin.validate.ShopRecordSearchValidate;
import com.mdd.admin.vo.ShopRecordListedVo;
import com.mdd.admin.vo.ShopRecordDetailVo;
import com.mdd.common.core.PageResult;
import com.mdd.common.entity.ShopRecord;

/**
 * 开店申请服务接口类
 * @author cxt
 */
public interface IShopRecordService {

    /**
     * 开店申请列表
     *
     * @author cxt
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<ShopRecordListedVo>
     */
    PageResult<ShopRecordListedVo> list(PageValidate pageValidate, ShopRecordSearchValidate searchValidate);

    /**
     * 开店申请详情
     *
     * @author cxt
     * @param id 主键ID
     * @return ShopRecordDetailVo
     */
    ShopRecordDetailVo detail(Integer id);

    /**
     * 开店申请新增
     *
     * @author cxt
     * @param createValidate 参数
     */
    void add(ShopRecordCreateValidate createValidate);

    /**
     * 开店申请编辑
     *
     * @author cxt
     * @param updateValidate 参数
     */
    void edit(ShopRecordUpdateValidate updateValidate);
    
    void examine(ShopRecord record);

    /**
     * 开店申请删除
     *
     * @author cxt
     * @param id 主键ID
     */
    void del(Integer id);

}
